//
//  ViewController.m
//  Slider_SB
//
//  Created by xalo on 16/4/13.
//  Copyright © 2016年 李海强. All rights reserved.
//

#import "ViewController.h"
#import "RightViewController.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIView *leftVC;
//@property (weak, nonatomic) IBOutlet UIView *rightVC;


// 测试改代码----------------------------------



@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
//    [self.view exchangeSubviewAtIndex:0 withSubviewAtIndex:1];
    
    
//    self.rightVC.superview.superview.hidden=YES;
    
//    RightViewController *rightVC=[[RightViewController alloc]init];
//    [self addChildViewController:rightVC];
//    [self.view addSubview:rightVC.view];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)viewDidAppear:(BOOL)animated {
    
    UIStoryboard *main=[UIStoryboard storyboardWithName:@"Main" bundle:nil];
    UINavigationController *naVC=[main instantiateViewControllerWithIdentifier:@"naVC"];
    [self addChildViewController:naVC];
    [self.view addSubview:naVC.view];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
